Media and Embeds (1/12)
How can we embed audio in HTML?
    Embedding Audio in HTML

    In HTML, the `<audio>` element is used to embed audio files directly into a web page. It allows users to play sounds like music, voice recordings, or effects without requiring external plugins.

    Key Points about <audio>
    • The `<audio>` tag supports attributes like `controls`, `autoplay`, `loop`, and `muted`.
    • Common formats supported are MP3, OGG, and WAV.
    • The `<source>` tag inside `<audio>` allows providing multiple file formats for better browser compatibility.
    • If the browser doesn’t support the `<audio>` element, fallback text can be displayed.
    Example Usage

    In short: The `<audio>` element lets you embed and control sound playback directly in your web pages.